#include<string.h>

char *removeTrailingZeros(char *num)
{
    int sz = strlen(num);
    while (num[sz - 1] == '0')
    {
        num[sz - 1] = '\0';
        sz--;
    }
    return num;
}
